﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using A2DFramework.CacheService.CacheAttributes;
using A2DFramework.CacheService.CacheProvider.LocalCache;

namespace IoCTest.Core
{
    interface IOrder
    {
        [Cachable("Order.GetMessage", "Default", ExpireType = CacheExpireType.Absolutely, Increment = 5)]
        string GetMessage();

        [CacheEvict("Order.GetMessage", "Default")]
        void UpdateMessage(string userInput);
    }
}
